import React from 'react';
import PropTypes from 'prop-types';
import { Badge } from 'antd-mobile';

export default class Tag extends React.Component {
  static propTypes = {
    title: PropTypes.string.isRequired,
  }
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <Badge
        text={this.props.title}
        hot
        style={{
          padding: '0 0.08rem',
          backgroundColor: '#fff',
          color: '#999',
          border: '0.01rem solid #22baa0',
          marginRight: '0.1rem'
        }}
      />
    );
  }
}
